3.1.6 \(\int \frac {\log (c (a+b x^2)^p)}{x} \, dx\) [6]

Optimal. Leaf size=44 \[ \frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log \left (c \left (a+b x^2\right )^p\right )+\frac {1}{2} p \text {Li}_2\left (1+\frac {b x^2}{a}\right ) \]

[Out]

1/2*ln(-b*x^2/a)*ln(c*(b*x^2+a)^p)+1/2*p*polylog(2,1+b*x^2/a)

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {2504, 2441, 2352} \begin {gather*} \frac {1}{2} p \text {PolyLog}\left (2,\frac {b x^2}{a}+1\right )+\frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log \left (c \left (a+b x^2\right )^p\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Log[c*(a + b*x^2)^p]/x,x]

[Out]

(Log[-((b*x^2)/a)]*Log[c*(a + b*x^2)^p])/2 + (p*PolyLog[2, 1 + (b*x^2)/a])/2

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2441

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[Log[e*((f + g
*x)/(e*f - d*g))]*((a + b*Log[c*(d + e*x)^n])/g), x] - Dist[b*e*(n/g), Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g, 0]

Rule 2504

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[I
nt[x^(Simplify[(m + 1)/n] - 1)*(a + b*Log[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p,
 q}, x] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0]) &&  !(EqQ[q, 1] && ILtQ[n, 0] &&
 IGtQ[m, 0])

Rubi steps

\begin {align*} \int \frac {\log \left (c \left (a+b x^2\right )^p\right )}{x} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\log \left (c (a+b x)^p\right )}{x} \, dx,x,x^2\right )\\ &=\frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log \left (c \left (a+b x^2\right )^p\right )-\frac {1}{2} (b p) \text {Subst}\left (\int \frac {\log \left (-\frac {b x}{a}\right )}{a+b x} \, dx,x,x^2\right )\\ &=\frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log \left (c \left (a+b x^2\right )^p\right )+\frac {1}{2} p \text {Li}_2\left (1+\frac {b x^2}{a}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 43, normalized size = 0.98 \begin {gather*} \frac {1}{2} \left (\log \left (-\frac {b x^2}{a}\right ) \log \left (c \left (a+b x^2\right )^p\right )+p \text {Li}_2\left (\frac {a+b x^2}{a}\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Log[c*(a + b*x^2)^p]/x,x]

[Out]

(Log[-((b*x^2)/a)]*Log[c*(a + b*x^2)^p] + p*PolyLog[2, (a + b*x^2)/a])/2

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.27, size = 232, normalized size = 5.27

method result size
risch \(\ln \left (x \right ) \ln \left (\left (b \,x^{2}+a \right )^{p}\right )-p \ln \left (x \right ) \ln \left (\frac {-b x +\sqrt {-b a}}{\sqrt {-b a}}\right )-p \ln \left (x \right ) \ln \left (\frac {b x +\sqrt {-b a}}{\sqrt {-b a}}\right )-p \dilog \left (\frac {-b x +\sqrt {-b a}}{\sqrt {-b a}}\right )-p \dilog \left (\frac {b x +\sqrt {-b a}}{\sqrt {-b a}}\right )+\frac {i \ln \left (x \right ) \pi \,\mathrm {csgn}\left (i \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{2}}{2}-\frac {i \ln \left (x \right ) \pi \,\mathrm {csgn}\left (i \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \right )}{2}-\frac {i \ln \left (x \right ) \pi \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{3}}{2}+\frac {i \ln \left (x \right ) \pi \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}+\ln \left (c \right ) \ln \left (x \right )\) \(232\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(c*(b*x^2+a)^p)/x,x,method=_RETURNVERBOSE)

[Out]

ln(x)*ln((b*x^2+a)^p)-p*ln(x)*ln((-b*x+(-b*a)^(1/2))/(-b*a)^(1/2))-p*ln(x)*ln((b*x+(-b*a)^(1/2))/(-b*a)^(1/2))
-p*dilog((-b*x+(-b*a)^(1/2))/(-b*a)^(1/2))-p*dilog((b*x+(-b*a)^(1/2))/(-b*a)^(1/2))+1/2*I*ln(x)*Pi*csgn(I*(b*x
^2+a)^p)*csgn(I*c*(b*x^2+a)^p)^2-1/2*I*ln(x)*Pi*csgn(I*(b*x^2+a)^p)*csgn(I*c*(b*x^2+a)^p)*csgn(I*c)-1/2*I*ln(x
)*Pi*csgn(I*c*(b*x^2+a)^p)^3+1/2*I*ln(x)*Pi*csgn(I*c*(b*x^2+a)^p)^2*csgn(I*c)+ln(c)*ln(x)

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 80 vs. \(2 (39) = 78\).
time = 0.28, size = 80, normalized size = 1.82 \begin {gather*} \frac {1}{2} \, b p {\left (\frac {2 \, \log \left (b x^{2} + a\right ) \log \left (x\right )}{b} - \frac {2 \, \log \left (\frac {b x^{2}}{a} + 1\right ) \log \left (x\right ) + {\rm Li}_2\left (-\frac {b x^{2}}{a}\right )}{b}\right )} - p \log \left (b x^{2} + a\right ) \log \left (x\right ) + \log \left ({\left (b x^{2} + a\right )}^{p} c\right ) \log \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(b*x^2+a)^p)/x,x, algorithm="maxima")

[Out]

1/2*b*p*(2*log(b*x^2 + a)*log(x)/b - (2*log(b*x^2/a + 1)*log(x) + dilog(-b*x^2/a))/b) - p*log(b*x^2 + a)*log(x
) + log((b*x^2 + a)^p*c)*log(x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(b*x^2+a)^p)/x,x, algorithm="fricas")

[Out]

integral(log((b*x^2 + a)^p*c)/x, x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(c*(b*x**2+a)**p)/x,x)

[Out]

Integral(log(c*(a + b*x**2)**p)/x, x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(b*x^2+a)^p)/x,x, algorithm="giac")

[Out]

integrate(log((b*x^2 + a)^p*c)/x, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\ln \left (c\,{\left (b\,x^2+a\right )}^p\right )}{x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(c*(a + b*x^2)^p)/x,x)

[Out]

int(log(c*(a + b*x^2)^p)/x, x)

________________________________________________________________________________________